# GnuMake  matrixssl 3.1.1

CC		= dmc
LIBR		= lib
CFLAG	=  -I. -c \
	-DWIN32=1 \
	-DPSPUBLIC="" \
	-DUSE_MULTITHREADING=1 \
	-DUSE_CLIENT_SIDE_SSL=1 \
	-D_USRDLL=0 \
	-DUSE_CORE_TRACE=1 \
	-DWINAPI=1 \
	-DSTRICT -D_WIN32_WINNT=0x0400
# -DUSE_FILE_SYSTEM=1

SSL_LIB		= matrixssl.lib
ALL_OBJ		= $(patsubst %.c, %.obj, $(wildcard core/*.c core/*/*.c  crypto/*.c , crypto/*/*.c matrixssl/*.c))

ALL: $(SSL_LIB)

%.obj: %.c
	$(CC) $(CFLAG)  $^ -o$@

$(SSL_LIB) : $(ALL_OBJ)
	$(LIBR) -c $@ $^

clean:
	del /S /Q *.obj *.def *.map
